A testing strategy for abstract classes

نویسندگان

  • Peter J. Clarke
  • James F. Power
  • Djuradj Babich
  • Tariq M. King
چکیده

parent ACsEx.A Concrete children ACsEx.B1, ACsEx.B2, ACsEx1.B3 Class ACsEx.B1: Inherited methods B1.a2(), B1.a3(), B1.a4(P), B1.a7() Class ACsEx.B2: Inherited methods B2.a1(P), B2.a4(P), B2.a6(), B2.a7(), B2.a8(int) Class ACsEx1.B3: Inherited methods B3.a4(P), B3.a6(), B3.a7(), B3.a8(int) for the classes ACsEx.A, ACsEx.B1, ACsEx.B2, and ACsEx1.B3 from the code in Figure 1, the data in Table IV was generated. Table IV shows the abstract class, concrete descendants, and their inherited methods. Copyright q 2010 John Wiley & Sons, Ltd. Softw. Test. Verif. Reliab. (2010)

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Testing Strategy for Abstract Classes [Draft]

One of the characteristics of the increasingly widespread use of object-oriented libraries and the resulting intensive use of inheritance is the proliferation of dependencies on abstract classes. Since abstract classes cannot be instantiated, they cannot be tested in isolation using standard execution-based testing strategies. A standard approach to testing abstract classes is to instantiate a ...

متن کامل

Using Contracts and Boolean Queries to Improve the Quality of Automatic Test Generation

Since test cases cannot be exhaustive, any effective test case generation strategy must identify the execution states most likely to uncover bugs. The key issue is to define criteria for selecting such interesting states. If the units being tested are classes in object-oriented programming, it seems attractive to rely on the boolean queries present in each class, which indeed define criteria on...

متن کامل

How do subclass objects get created? PositionableStream is a subclass of Stream PositionableStream class>>on: aCollection ^super new on: aCollection “Throws and Exception” Use basicNew PositionableStream class>>on: aCollection ^self basicNew on: aCollection

classes commonly do not have instance variables How can they implement methods? Identify a core set of abstract operations Implement other methods using core methods 10/21/03 Doc 14 Abstract Classes, Inheritance & Testing slide# 9 Collection Class Collection does not have any instance variables Collection implements • collect: • detect: • detect:ifNone: • do:separatedBy: • fold: • groupedBy: • ...

متن کامل

Specification-Driven Unit Test Generation for Java Generic Classes

Several approaches exist to automatically derive test cases that check the conformance of the implementation of abstract data types (ADTs) with respect to their specification. However, they lack support for the testing of implementations of ADTs defined by generic classes. In this paper, we present a novel technique to automatically derive, from specifications, unit test cases for Java generic ...

متن کامل

بررسی تأثیر ارزشیابی تکوینی بر پیشرفت تحصیلی دانش‌آموزان کلاس سوم راهنمایی در درس ریاضیات

The purpose of this study was to find out the role of formative testing in academic achievement of the second grade junior high school students in mathematics. The investigation of repetition of this formative testing and its cumulative effects on student achievement during the school year was also severed as second purpose of this study. From all classes in schools located in high and low soci...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Softw. Test., Verif. Reliab.

دوره 22  شماره 

صفحات  -

تاریخ انتشار 2012